<div class="pageContent">
<form method="post" action="${rc.getContextPath()}/manage/performance/updatePerformance" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
    <input type="hidden" name="navTabId" value="${navTabId!''}" />
    <input type="hidden" name="id" value="${performance.id!''}" />
    <div class="pageFormContent">
        <fieldset>
            <dl>
                <dt><@label key='personnelCode.C,colon'>人员编号：</@label></dt>
                <dd>
                    <input  type="text" readonly="readonly" name="personnelCode" value="${performance.personnelCode!''}"/>
                </dd>
            </dl>
            <dl>
                <dt><@label key="personnelName.C,colon">姓名：</@label></dt>
                <dd>
                    <input   readonly="readonly" value="${performance.personnelName!''}" type="text"/>
                </dd>
            </dl>
            <dl>
                <dt><@label key="workCenter.C,colon">工作中心：</@label></dt>
                <dd>
                    <input   readonly="readonly" value="${performance.workcenterText!''}" type="text"/>
                </dd>
            </dl>
            <dl notnormal>
                <dt><@label key="shiftingWorkCenter.C,colon">实际工作中心：</@label></dt>
                <dd><input type="text" readonly="readonly" value="${performance.shiftingWorkcenterText!''}"/></dd>
            </dl>
            <!-- <dl>
                <dt><@label key="personnelType.C,colon">人员类型：</@label></dt>
                <dd>
                    <input  readonly="readonly" value="${performance.typeText!''}" type="text"/>
                </dd>
            </dl> -->
            <dl class="notnormal">
                <dt><@label key='date.C,colon'>日期：</@label></label></dt>
                <dd>
                    <input type="text"  readonly  name="theDate" value="${(performance.theDate?string('yyyy-MM-dd'))?if_exists}"/>
                </dd>
            </dl>
            <dl>
                <dt><@label key='startTime.C,colon'>开始时间</@label></label></dt>
                <dd>
                    <input type="text"  name="startDatetime"  value="${(performance.startDatetime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" class="required date"   max_Date="{endDatetime}" dateFmt="yyyy-MM-dd HH:mm:ss"/><a class="inputDateButton" href="javascript:;">选择</a>
                </dd>
            </dl>
            <dl>
                <dt><@label key='endTime.C,colon'>结束时间</@label></dt>
                <dd>
                    <input type="text" name="endDatetime"   value="${(performance.endDatetime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" class="required date"   min_Date="{startDatetime}" dateFmt="yyyy-MM-dd HH:mm:ss"/><a class="inputDateButton" href="javascript:;">选择</a>
                </dd>
            </dl>
            <dl class="notnormal">
                <dt><@label key='materialCode.C,colon'>物料编码：</@label></dt>
                <dd>
                    <input class="required look" id="materialLookup.materialCode" name="materialCode" type="text" postField="materialCode" suggestFields="materialCode,materialText" value="${performance.materialCode!''}"
                    suggestUrl="${rc.getContextPath()}/manage/material/componentSuggest" lookupGroup="materialLookup" remote="${rc.getContextPath()}/manage/material/validateMaterial" warn="<@label key='materialCodeNotExists.M'>物料编号不存在</@label>"/>
                    <a class="btnLook" href="${rc.getContextPath()}/manage/material/componentLookUp?lookupType=radio" rel="materialLookup_dialog" title="<@label key='select.C,materialCode.C'>选择物料</@label>" lookupGroup="materialLookup" ></a>
                </dd>
            </dl>
            <dl>
                <dt><@label key='materialText.C,colon'>物料描述：</@label></dt>
                <dd><input type="text" readonly id="materialLookup.materialText" value="${performance.materialText!''}"/></dd>
            </dl>
            <dl>
                <dt><@label key='quantity.C,colon'>数量</@label></dt>
                <dd><input type="text" class="required number" min="1" maxlength="15" name="quantity"  value="${performance.quantity!''}"/></dd>
            </dl>
            <dl>
                <dt><@label key='description.C,colon'>备注</@label></dt>
                <dd><input type="text" name="memo" value="${performance.memo!''}" maxlength="200"/></dd>
            </dl>
        </fieldset>
    </div>
    <#if performance??> <#assign createInfo = performance /> 
                        <#include "/common/createInfo.html"> </#if>
    <div class="formBar">
    <ul>
        <li><div class="buttonActive"><div class="buttonContent"><button type="submit"><@label key="save.B">保存</@label></button></div></div></li>
        <li>
            <div class="buttonActiveGrey"><div class="buttonContent"><button type="button" class="close"><@label key="close.B">关闭</@label></button></div></div>
        </li>
    </ul>
   </div>
   </form>
</div>